<?php


namespace app\teacher\controller;


class Room extends Base
{
    //根据楼栋id获取宿舍列表
    public function getRoomByHouseId(){
        $house_id = request()->param('id',0,'intval');
        $list = model('Room')->where('house_id',$house_id)->column('title','id');
        return $this->ok($list);
    }
}